package com.chance.cc.crawler.prod.command.node.zhihu;

import com.chance.cc.crawler.development.command.node.CrawlerNodeCommand;
import com.chance.cc.crawler.prod.command.job.domain.news.zhihu.ZHSearchRealtimeCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.job.domain.news.zhihu.ZHSearchSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.zhihu.ZHSearchTraceAHourCrawlerScheduleJob;

/**
 * @author bx
 * @date 2020/12/8 0008 13:37
 */
public class ZHCrawlerNodeOperator {

    public static void main(String[] args) {
        CrawlerNodeCommand crawlerNodeCommand = new CrawlerNodeCommand("192.168.1.212",9505);

        crawlerNodeCommand.nodeStatus();

//        crawlerNodeCommand.killCrawler(ZHSearchRealtimeCrawlerScheduleJob.crawlerJob());
//        crawlerNodeCommand.killCrawler(ZHSearchTraceAHourCrawlerScheduleJob.crawlerJob());
//        crawlerNodeCommand.killCrawler(ZHSearchTraceAWeekCrawlerScheduleJob.crawlerJob());
        crawlerNodeCommand.killCrawler(ZHSearchSimpleCrawlerSchedulerJob.crawlerJob());

        crawlerNodeCommand.nodeStatus();

    }
}
